<template>
  <div>
    bro1
    <button @click="onBro1">emit bro1</button>
  </div>
</template>

<script setup lang="ts">
import { inject } from "vue";
import { EventBusType, EventBusKey } from "../../utils/EventBus";
const EventBus = inject<EventBusType>(EventBusKey);

function onBro1() {
  EventBus?.emit("bro1", "bro1");
}
</script>

<style scoped></style>
